﻿using System;
using System.Runtime.Serialization;

namespace Com.Pernix.Common.Exceptions
{
    public abstract class CommonException : Exception
    {
        public String ErrorCode { get; protected set; }
        protected CommonException()
        {
        }
        protected CommonException(string message)
            : base(message) { }

        protected CommonException(string format, params object[] args)
            : base(string.Format(format, args)) { }

        protected CommonException(string message, Exception innerException)
            : base(message, innerException) { }

        protected CommonException(string format, Exception innerException, params object[] args)
            : base(string.Format(format, args), innerException) { }

        protected CommonException(SerializationInfo info, StreamingContext context)
            : base(info, context) { }
    }
}
